local CheckWidgetType = UI.CheckWidgetType
local CheckArgWidget = UI.CheckArgWidget

--[[ Font ]]--

local Font = UI.NewWidgetType("Font", "FontInstance")
Font.parameters = {}

local copyparams = {
	font = true,
	height = true,
	flag = true,
	fparent = true,
	justifyh = true,
	justifyv = true,
	shadowred = true,
	shadowgreen = true,
	shadowblue = true,
	shadowalpha = true,
	shadowoffsetx = true,
	shadowoffsety = true,
	textcolorred = true,
	textcolorgreen = true,
	textcolorblue = true,
	textcoloralpha = true,
}

function Font.prototype:CopyFontObject(fontObject)
	CheckWidgetType("Font:CopyFontObject", self, "Font")
	CheckArgWidget("Font:CopyFontObject", 2, "fontObject", "FontInstance", fontObject)
	local s = UI.params[otherFont]
	local d = UI.params[self]
	for k in pairs(copyparams) do
		d[k] = s[k]
	end
end

